#ifndef GRAPHICSLINEITEM_H
#define GRAPHICSLINEITEM_H

#include <QGraphicsLineItem>

class GraphicsLineItem : public QObject, public QGraphicsLineItem
{
	Q_OBJECT

public:
	GraphicsLineItem(QGraphicsItem *parent = 0);
	~GraphicsLineItem();

public:
	void connectItem(QGraphicsItem * item1, QGraphicsItem * item2);

	void updateLine();
protected:
	void paint(QPainter *painter, 
		const QStyleOptionGraphicsItem *option, QWidget *widget  = 0 );

private:
	QGraphicsItem * mItem1;
	QGraphicsItem * mItem2;

	void paintArrow( QPainter * pt);
};

#endif // GRAPHICSLINEITEM_H
